package com.sz.mes.vo;

import com.diboot.core.binding.annotation.BindDict;
import com.diboot.core.binding.annotation.BindField;
import com.diboot.core.vo.LabelValue;
import com.diboot.iam.entity.IamUser;
import com.sz.mes.entity.TaskTemplate;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* 任务模板 ListVO定义
* @author hem
* @version 1.0
* @date 2024-01-26
 * Copyright © szhs
*/
@Getter @Setter @Accessors(chain = true)
public class TaskTemplateListVO extends TaskTemplate  {
    private static final long serialVersionUID = -2669889500375408043L;

    /** 
    * 关联字段 系统用户.真实姓名：IamUser.realname
    */
    @BindField(entity = IamUser.class, field = "realname", condition = "this.create_by=id")
    private String createByName;

    @BindDict(type = "TASK_TEMPLATE_TYPE", field = "type")
    private String typeLabel;

    @BindDict(type = "TASK_TEMPLATE_VERSION", field = "version")
    private String versionLabel;

}